package learn.spring.api.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import learn.spring.api.entity.UserRole;
import learn.spring.api.mapper.UserRoleMapper;
import learn.spring.api.service.IUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chins
 * @since 2021-12-18
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements IUserRoleService {

    @Autowired
    private UserRoleMapper userRoleMapper;

    @Override
    public List<String> getRoleIdsByUserId(String userId) {
        List<String> roleids = userRoleMapper.selectRoleIdsByUserId(userId);
        return roleids;
    }
}
